#include <iostream>
#include <cmath>
#include "marshals.h"
#include "reverseOrder.h"
#include "mergesort.h"
extern int inversions;
void testArray() {
	const int l = 4;
	int ia[l];

}
void testReverseOrder() {
	int a[] = { 4,8,3,2,1 };
	std::cout << countReverseOrder(a, 0, 5) << std::endl;
}
void testMerge() {
	//int a[] = { 1,3,5,2,4,6 };
	int a[] = { 10,4,5,2,8,6 };

	//merge(a, 0, 3, 6);
	mergeSort(a, 0, 6);
	for (int i = 0; i < 6; i++) {
		std::cout << a[i] << "  " << std::endl;
	}
	std::cout << "inversions: " << inversions << std::endl;
	
}
int mainmain() {
	//verify();
	//mashalInt();
	//testReverseOrder();
	testMerge();
	return 0;
}